import request from '../utils/request'

export function getBodyShape () {
  return request({
    method: 'get',
    url: 'app/body-shape'
  })
}

export function postBodyShape (name, comment, analysis) {
  let data = {
    name,
    comment,
    analysis
  }
  return request({
    method: 'post',
    url: 'app/body-shape',
    data: data
  })
}

export function getPhysicalFitness () {
  return request({
    method: 'get',
    url: 'app/physical-fitness'
  })
}

export function postPhysicalFitness (type, data) {
  return request({
    method: 'post',
    url: 'app/physical-fitness/' + type,
    data: data
  })
}
